package com.wmeimob.fastboot.jiubei.entity;

import com.alibaba.fastjson.JSONArray;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.*;
import java.math.*;


/**
 * ShopGoodsComment.java
 * http://www.wmeimob.com
 * Copyright © 2018 wmeimob All Rights Reserved,version 1.0
 *
 * @author：wjt Sat Aug 29 21:42:58 CST 2020 Created
 */

@Table(name = "`shop_goods_comment`")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class ShopGoodsComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * Id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 用户ID
     */
    @Column(name = "member_id")
    private Long memberId;
    /**
     * 用户昵称
     */
    @Column(name = "nickname")
    private String nickname;
    /**
     * 头像
     */
    @Column(name = "head_img")
    private String headImg;
    /**
     * 商品ID
     */
    @Column(name = "goods_id")
    private Long goodsId;
    /**
     * 商品skuId
     */
    @Column(name = "goods_sku_id")
    private Long goodsSkuId;
    /**
     * ENUM[YesOrNo]是否显示：0.否、1.是
     */
    @Column(name = "display")
    private Boolean display;
    /**
     * 内容
     */
    @Column(name = "content")
    private String content;
    /**
     * 图片String[]
     */
    @Column(name = "pic")
    private JSONArray pic;
    /**
     * 卖家回复
     */
    @Column(name = "reply")
    private String reply;
    /**
     * 评分
     */
    @Column(name = "score")
    private Double score;
    /**
     * 匿名：0.否、1.是
     */
    @Column(name = "anonymous")
    private Boolean anonymous;
    /**
     * 是否删除
     */
    @Column(name = "is_del")
    private Boolean del;
    /**
     * 创建时间
     */
    @Column(name = "gmt_create")
    @JsonFormat(locale = "zh", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;
    /**
     * 修改时间
     */
    @Column(name = "gmt_modified")
    @JsonFormat(locale = "zh", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtModified;

}